#pragma once
#include "stdafx.h"

template <typename T>
void show_list(const list<T> &v)
{
	/*for (auto &s : v) {
	cout << s << endl;
	}*/
	for_each(v.cbegin(), v.cend(), [](const string &a) { cout << a << endl; });
	cout << "----------size is:" << v.size() << "----------" << endl;
}

template <typename T>
void show(const vector<T> &v)
{
	for (auto &s : v) {
		cout << s << endl;
	}
	cout << "----------size is:" << v.size() << "----------" << endl;
}

template <typename T>
void rshow(const vector<T> &v)
{
	for (auto rit = v.crbegin(); rit != v.crend(); ++rit) {
		cout << *rit << " ";
	}
	cout << "--->size is " << v.size() << endl;
}